package cn.powertime.evaluation.service.impl;

import cn.powertime.evaluation.entity.CpLionUser;
import cn.powertime.evaluation.mapper.CpLionUserMapper;
import cn.powertime.evaluation.service.CpLionUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CpLionUserServiceImpl  extends ServiceImpl<CpLionUserMapper,CpLionUser> implements CpLionUserService {

    @Autowired
    private  CpLionUserMapper cpLionUserMapper;

    @Override
    public boolean ownSave(CpLionUser cpLionUser) {
        return save(cpLionUser);
    }

    @Override
    public boolean ownUpdateById(CpLionUser menu) {
        //int i =cpLionUserMapper.updateByUsesrId(menu);
        //return i>0;
        return  updateById(menu);
    }
}
